import instance from '@/utils/axios.js'

function getChannelList(){
    return instance({
        url:'/v1_0/channels',
        method:'get'
    })
}

export {getChannelList}

function getArticleList({channel_id,timestamp}){
    return instance({
        url:'/v1_0/articles',
        method:'GET',
        params:{
            with_top:1,
            channel_id,
            timestamp
        }
    })
}
export {getArticleList}


function getArticleInfo(id){
    return instance({
        url:`/v1_0/articles/${id}`,
        method:'get',

    })
}

export {getArticleInfo}